<!DOCTYPE html>
<html>
	<head>
		<title></title>
		<meta charset="UTF-8"/>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="js/flexible.js"></script>
		<meta name="baidu-site-verification" content="7jmKSwPOs3" />
		<link rel="stylesheet" href="css/main.css" />
	</head>
	<body>
<?php
	require_once("./functions.php");
	if(!empty($_POST)){
		$title = $_POST["clientName"];
		$address = $_POST["clientAddress"];
		$number = $_POST["clientNumber"];
		$m = $_POST["clientM"];
		$flag = sendMail('992766982@qq.com',"装修送全房21件家具","姓名: ".$title."<br/>"."地址: ".$address."<br/>"."电话号码: ".$number."<br/>"."平米: ".$m);
		
		if($flag){
		    echo "<script>alert('您已报名成功,稍后客服会和您联系'); history.back();</script>";
		}else{
		    echo "<script>alert('由于网络问题请再次提交'); history.back();</script>";
		}
	}
?>


	</body>
</html>